package com.project.frame.common.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * desc
 *
 * @author lw007
 * @date 2021/12/24
 */
@Configuration
public class SwaggerV3Config {
    @Bean
    public OpenAPI initOpenAPI() {
        return new OpenAPI().info(
                new Info().title("My Project API").description("OpenAPI").version("v1.0")
        );
    }
}
